<template>
	<view class="container">
		<view class="header">
			<text class="title">测试页面</text>
		</view>
		
		<view class="content">
			<text class="message">这是一个测试页面，用于验证页面跳转功能</text>
			
			<view class="buttons">
				<button class="btn btn-primary" @click="goBack">返回首页</button>
				<button class="btn btn-secondary" @click="showInfo">显示信息</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				message: '测试页面加载成功！'
			}
		},
		onLoad() {
			console.log('测试页面加载完成')
		},
		methods: {
			goBack() {
				uni.navigateBack({
					delta: 1
				})
			},
			showInfo() {
				uni.showToast({
					title: '测试页面功能正常',
					icon: 'success'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		min-height: 100vh;
		background: #f5f5f5;
		padding: 40rpx;
	}

	.header {
		text-align: center;
		margin-bottom: 60rpx;
		
		.title {
			font-size: 48rpx;
			font-weight: bold;
			color: #333;
		}
	}

	.content {
		background: #fff;
		border-radius: 20rpx;
		padding: 60rpx;
		text-align: center;
		
		.message {
			display: block;
			font-size: 32rpx;
			color: #666;
			margin-bottom: 60rpx;
			line-height: 1.6;
		}
	}

	.buttons {
		display: flex;
		flex-direction: column;
		gap: 30rpx;
	}

	.btn {
		height: 80rpx;
		border-radius: 16rpx;
		font-size: 32rpx;
		font-weight: bold;
		border: none;
		
		&.btn-primary {
			background: #409EFF;
			color: #fff;
		}
		
		&.btn-secondary {
			background: #f0f0f0;
			color: #333;
		}
	}
</style>
